class TestResult {
  int rightQuesCount;
  int errorQuesCount;
  int answerTime;
  double rightRatio;
  bool isFinish;

  TestResult({
    this.rightQuesCount,
    this.errorQuesCount,
    this.answerTime,
    this.rightRatio,
    this.isFinish,
  });

  factory TestResult.fromJson(Map<String, dynamic> json) {
    return TestResult(
      rightQuesCount: json['rightQuesCount'],
      errorQuesCount: json['errorQuesCount'],
      answerTime: json['answerTime'],
      rightRatio: json['rightRatio'],
      isFinish: json['isFinish'],
    );
  }
}
